import Request from '@/api/request'
var request = new Request().http

//商品类别接口
export function getProductInfo(productId) {
	return request({
		url: "/applet/home-product/getProductInfo",
		method: "Get",
		data: {
			productId
		}
	})
}
// 获取商品所有类别
export function getCategory() {
	return request({
		url: "/applet/home-product/getCategory",
		method: "Get",
	})
}
// 根据类别获取商品
export function getProductByCategory(data) {
	return request({
		url: "/applet/home-product/getProduct",
		method: "Get",
		data
	})
}